public class Train {
	private Route route;
	private Schedule schedule;
	private String local;

	public Train(Route route, Schedule schedule, String local) {
		this.route = route;
		this.schedule = schedule;
		this.local = local;
	}

	public boolean KTDiemDen(String local) {
		return this.route.equals(local);

	}

	public boolean TGTBD(ClockTime that) {

		return this.schedule.TGTBD(that);
	}

	public int TGMat() {
		return this.schedule.TGM();

	}
}
